package router

import (
	"api-wareway/handler/middleware"
	"api-wareway/handler/service"
	"github.com/gin-gonic/gin"
)

func Router(r *gin.Engine) {
	r.POST("/uploadFile", service.UploadFile)
	r.POST("/addVideo", service.AddVideo)
	r.POST("/addVideoList", service.AddVideoList)
	r.POST("/user/create", service.CreateUser)
	r.POST("/user/Login", service.LoginUser)
	r.Use(middleware.Auth())
}
